import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import 'element-plus/theme-chalk/index.css'
import '@renderer/assets/css/reset.css'
// 导入暗黑模式的 css 文件
import 'element-plus/theme-chalk/dark/css-vars.css'
// 国际化
import i18n from './locales'
import scui from './plugins/register'
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'

const app = createApp(App)
const pinia = createPinia()

app.use(router).use(pinia).use(i18n).use(scui)

// 使用持久化存储插件
pinia.use(piniaPluginPersist)

app.mount('#app')